package com.qf.web.controller;

import com.qf.common.vo.ResponseResult;
import com.qf.web.service.HomeService;
import com.qf.web.vo.HomeVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author KING
 * @ClassName: com.qf.web.controller.HomeController
 * @Description: 主页接口
 * @date: 2021/11/10 20:56
 */
@RestController
@RequestMapping("/home")
public class HomeController {
    @Resource
    private HomeService homeService;

    @GetMapping("/head")
    public ResponseResult<HomeVo> getHeadData() {
        HomeVo homeVo = homeService.getHeadData();
        return ResponseResult.success(homeVo);
    }
}
